package com.redis.transaction.service;

/**
 */
public interface IRGTRedisService {
    void expire(String key, int seconds);

    boolean deleteKey(String key);

    boolean setNxString(String key, String value, int seconds) throws Exception;

    boolean setHnxString(String key, String field, String value) throws Exception;

    void setString(String key, String value);

    void setString(String key, String value, int seconds);

    String getString(String key);

    String getString(String key, int seconds);

    boolean exists(String key);
}
